package com.lcj.service;

import com.lcj.dto.ArticleCondition;
import com.lcj.dto.ArticleInfo;
import com.lcj.dto.CommentDto;
import com.lcj.dto.CommentsDto;
import com.lcj.vo.ArticleInfoVo;
import com.lcj.vo.ArticlesNBVo;
import com.lcj.vo.ArticlesVo;
import com.lcj.vo.CommentInfoVo;

public interface IArticleService {
    public int createArticle(ArticleInfo  articleInfo,long userId);
    public ArticleInfoVo getArticle(long id);
    public ArticlesVo getAllArticles(ArticleCondition articleCondition);
    public ArticlesNBVo getARticlesByFeed();

    ArticleInfoVo updateArticle(Long aid, ArticleInfo articleInfo);
    void deleteArticle(Long aid);

    CommentDto createComments(Long aid, CommentInfoVo comment);

    CommentsDto getComments(Long aid);

    void deleteComments(Long aid, Long cid);
    ArticleInfoVo favoriteArticle(Long aid);

    ArticleInfoVo unFavoriteArticle(Long aid);
}
